package com.controller;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import com.model.DepositChannels;
import com.util.ConstantUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.mapper.UserMapper;
import com.message.UserMessage;
import com.model.ResponseMsg;
import com.model.User;
import com.util.EmailUtil;
import com.util.MD5Util;

@Controller
@PropertySource("classpath:message.properties")
public class TransferController {

	@Autowired
	private UserMapper userMapper;

	@Autowired
	private Environment env;

	@RequestMapping("/transfer")
	public String transfer(Map<String, Object> model, HttpServletRequest request) {
		User user = (User) request.getSession().getAttribute(ConstantUtil.loginSession);
		model.put("pagename","transfer");
		return "usercenter";
	}




	@RequestMapping("/transferMoney")
	public String transferMoney(Map<String, Object> model, HttpServletRequest request) {
		User user = (User) request.getSession().getAttribute(ConstantUtil.loginSession);

		String transferAmount = request.getParameter("transferAmount");
		String descTransfer = request.getParameter("descTransfer");
		String sourceTransfer = request.getParameter("sourceTransfer");



		model.put("pagename","transfer");
		return "usercenter";
	}




}
